package org.bbmall.bean.sales;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 促销效果实体类
 * 对应数据库表：ads_promotion_effect
 */
@Data
@TableName("ads_promotion_effect")
public class AdsPromotionEffect {

    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 统计日期
     */
    @TableField("stat_date")
    private LocalDate statDate;

    /**
     * 促销类型
     */
    @TableField("promotion_type")
    private String promotionType;

    /**
     * 销售额提升百分比
     */
    @TableField("sales_growth_percent")
    private BigDecimal salesGrowthPercent;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}